﻿using KillBill.Business.Entities;

namespace KillBill.Presentation.Modules.Sales
{
    public class Detail
    {
        public Detail(int quantity, Product product)
        {
            Quantity = quantity;
            Product = product;
        }

        public int Quantity { get; set; }
        public Product Product { get; set; }
        public decimal TotalValue
        {
            get
            {
                return (this.Quantity * this.Product.LastPrice);
            }
        }
    }
}

